package com.bwie.interrogation.mapper;

import com.bwie.interrogation.domain.Dosage;
import com.bwie.interrogation.domain.Prescription;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PatientMapper {
    /**
     * 根据挂号表医生ID获取患者ID
     */
    Long selectById(Long userId);

    /**
     * 添加一个我的处方表——返回ID
     */
    Long addPrescription(Prescription prescriptionAdd);

    /**
     * 添加多个药品用量表
     */
    Long addDosage(Dosage dosage);

    /**
     * 添加处方中间表
     */
    void addPrescriptionDosage(Long addPrescriptionId, Long addDosageId);
}
